all: nfw

nfw: main.o nfw.o Matcher.o Pattern.o
	g++ main.o nfw.o Matcher.o Pattern.o -o nfw

main.o: ../src/main.cpp
	g++ -c ../src/main.cpp

nfw.o: ../src/nfw.cpp
	g++ -c ../src/nfw.cpp

Matcher.o: ../src/Matcher.cpp
	g++ -c ../src/Matcher.cpp

Pattern.o: ../src/Pattern.cpp
	g++ -c ../src/Pattern.cpp

clean:
	rm -rf *.o nfw

install: nfw
	install -m 0755 nfw /usr/local/bin

uninstall: nfw
	rm /usr/local/bin/nfw
